package com.cskaoyan.mapper;

import com.cskaoyan.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 创建日期: 2022/10/14 16:14
 *
 * @author ciggar
 */
public interface UserMapper {


    int updateUserByIdSelective(@Param("user") User user);

    // foreach标签

    // 批量插入
    int insertUserList(List<User> userList);

    int insertUserListWithAnnotation(@Param("userList") List<User> userList);

    // 传入数组
    int insertUserArray(User[] userArray);


    // in 查询
    List<User> selectUserListByIdList(@Param("idList") List<Integer> idList);

}
